<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
<head>
		<meta charset="UTF-8">
	<title><?php echo ('[title]' == '['.'title'.']' ? C('WEBSITE_NAME') : '[title]');?></title>
	<meta name="viewport" content="initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <meta content="yes" name="apple-mobile-web-app-capable">
	<meta content="red" name="apple-mobile-web-app-status-bar-style">
	<meta name="format-detection" content="telphone=no">
	<link rel="stylesheet" href="/css/mall.css?modify=20161026">
	<link rel="stylesheet" href="/css/trade.css?modify=20161026">
	<link rel="stylesheet" href="/css/red.css">
	<script type="text/javascript">
	var require = {
		baseUrl: '/js',
		waitSeconds: 0,
		map: {
		  '*': {
			'css': '//cdn.bootcss.com/require-css/0.1.8/css.min.js',
			'text': '//cdn.bootcss.com/require-text/2.0.12/text.min.js'
		  }
		},
		shim: {
			swiper: ['jquery', 'css!//cdn.bootcss.com/Swiper/3.3.1/css/swiper.min.css'],
			lazyload: ['jquery'],
		},
		paths: {
            'jquery': '//cdn.bootcss.com/jquery/1.12.4/jquery.min',
			'template': 'template',
			'validatejs': '//cdn.bootcss.com/jquery-validate/1.15.0/jquery.validate.min',
			'weixinjs': 'https://res.wx.qq.com/open/js/jweixin-1.0.0',
			'lazyload': '//cdn.bootcss.com/jquery.lazyload/1.9.1/jquery.lazyload.min',
			'swiper': '//cdn.bootcss.com/Swiper/3.3.1/js/swiper.min',

			'mall/cart': 'h5.js?modify=20161026',
			'view/order/list': 'h5.js?modify=20161026',
			'view/balance': 'h5.js?modify=20161026',
			'module/cart/num': 'h5.js?modify=20161026',
			'order/address': 'h5.js?modify=20161026',
			'pay': 'h5.js?modify=20161026',
			'view/personal/edit': 'h5.js?modify=20161026',
			'view/personal/scoreDetail': 'h5.js?modify=20161026',
			'view/present/list': 'h5.js?modify=20161026',
			'view/score': 'h5.js?modify=20161026',
			'pay/express': 'h5.js?modify=20161026',
			'jsweixin': 'h5.js?modify=20161026',
			'skumodal': 'h5.js?modify=20161026',
			'customer_service': 'h5.js?modify=20161026',
			'order/refund': 'h5.js?modify=20161026',
			'model_pay_coupon': 'h5.js?modify=20161026',
			'login_modal': 'h5.js?modify=20161026',
			'member/collection': 'h5.js?modify=20161026',
            'pullfresh': 'h5.js?modify=20161026',
            'goods_list': 'h5.js?modify=20161026',
          	'search': 'h5.js?modify=20161026',
		}
	}
	</script>
	<?php if(IS_APP): ?><script type="text/javascript" src="/js/appcan.min.js"></script><?php endif; ?>
	<script data-main="/js/h5.js?modify=20161026" src="//cdn.bootcss.com/require.js/2.3.1/require.min.js"></script>
	<?php if(!APP_DEBUG){ require_once 'cs.php';echo '<img src="'._cnzzTrackPageView(1259294058).'" width="0" height="0" style="display:none;"/>'; } ?>
</head>
<body class="body-fixed">
	<div class="container">
		<div class="content">
			<div class="content-body">
				<?php if($show_watch_weixin): ?><div style="position:fixed;top:0;height:50px;line-height:50px;z-index:10;color:#06bf04;font-size:14px;" class="top-fix">
    <div style="text-align:right;z-index:125;position:absolute;top:0;left:15px;right:15px;height:50px;">
		<span style="float:left;">欢迎光临<?php echo C('WEBSITE_NAME');?></span>
		<a class="btn btn-green" onclick="document.getElementById('watch_qrcode').style.display='block'">点击关注</a>
	</div>
	<div style="background-color:black;opacity:0.6;position:fixed;top:0;height:50px;" class="top-fix"></div>
</div>
<div id="watch_qrcode" class="top-fix" style="text-align: center;  display: none; background-color: rgb(255, 255, 255);position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: 2;padding-top: 25%;" onclick="this.style.display='none'">
	<img src="<?php echo C('WEIXIN.qrcode');?>" style="width:80%">
	<p style="color: #f60;font-size: 14px;font-weight: bold;">长按识别二维码</p>
</div><?php endif; ?>
				<div class="search-bar top-fix">
	<form class="search-form ignore" method="GET">
		<button type="button" class="js-search-cancel search-cancel">取消</button>
		<div class="search-content">
            <?php if(is_array($_GET)): foreach($_GET as $searc_field=>$searc_val): ?><input type="hidden" name="<?php echo ($searc_field); ?>" value="<?php echo ($searc_val); ?>"><?php endforeach; endif; ?>
			<input type="search" class="search-input" placeholder="搜索所有商品" name="title" value="<?php echo (htmlspecialchars($title)); ?>" maxlength="8">
			<span class="search-icon"></span>
		</div>
		<button type="submit" class="search-submit">搜索</button>
	</form>
	<div class="history-wrap top-fix center">
		<ul class="history-list js-history-list clearfix"></ul>
		<a class="tag tag-clear js-tag-clear" href="javascript:;">清除历史搜索</a>
	</div>
</div>
				<?php if(!empty($topbanners)): ?><div class="scale_wh scale_4_3">
			         <div class="scale_content">
			         	<div class="js-banner swiper-container">
							<div class="swiper-wrapper">
								<?php if(is_array($topbanners)): foreach($topbanners as $key=>$item): ?><div class="swiper-slide"><a href="<?php echo ((isset($item["url"]) && ($item["url"] !== ""))?($item["url"]):'javascript:;'); ?>"><img src="<?php echo ($item["img_url"]); ?>"></a></div><?php endforeach; endif; ?>
					  		</div>
					  		<div class="pagination rectangle"></div>
						</div>
			         </div>
		      	</div><?php endif; ?>
				<section class="table-nav">
					<table>
			            <tr>
                            <td><a href="/h5/list?tag_id=baoyou" class="hot"><img src="/img/mall/tag_changshangzhigong.png"/><p>包邮专区</p></a></td>
			                <td><a href="/h5/list?tag_id=10013"><img src="/img/mall/tag_10013.jpg"/><p>手机周边</p></a></td>
			                <td><a href="/h5/list?tag_id=10005"><img src="/img/mall/tag_watch.png"/><p>手表专区</p></a></td>
			                <td><a href="/h5/list?tag_id=10015"><img src="/img/mall/tag_jinkou.jpg"/><p>海外进口</p></a></td>
			            </tr>
						<tr>
							<td><a href="/h5/list?tag_id=10006"><img src="/img/mall/tag_muying.png"/><p>母婴专区</p></a></td>				
							<td><a href="/h5/list?tag_id=10008"><img src="/img/mall/tag_car.png"/><p>汽车用品</p></a></td>
							<td><a href="/h5/list?tag_id=10007"><img src="/img/mall/tag_huoji.png"/><p>火机专区</p></a></td>
						    <td><a href="/h5/category" class="new"><img src="/img/mall/icon_category.png"/><p>分类</p></a></td>
                        </tr>
					</table>
				</section>
				<div class="split-line"></div>
                <div class="scroll-notice">
	<div class="beginner-read">
		<span class="scroll-title">新手必读</span>
		<div id="beginner_read" class="scroll-content">
			<a class="scroll-item">长按图片查看高清原图</a>
			<a class="scroll-item">再长按图片可另存到手机中</a>
			<a class="scroll-item">将商品加入购物车统一下单</a>
			<a class="scroll-item">长按图片查看高清原图</a>
		</div>
	</div>
</div>
<script>
(function(){
	var oneHeight = 24;
	var scrollHeight = 0;
	var maxHeight = oneHeight * beginner_read.childElementCount;
	setInterval(function(){
		if(scrollHeight == 24){
			beginner_read.style.transition = 'all 0.5s ease-in-out';
		}
		
		beginner_read.style.transform = 'translateY(-'+scrollHeight+'px)';
		
		if(maxHeight - scrollHeight == oneHeight){
			setTimeout(function(){
				beginner_read.style.transition = 'all 0ms ease-in-out';
				beginner_read.style.transform = 'translateY(0)';
			}, 600);
			scrollHeight = 24;
		}else{
			scrollHeight += 24;
		}
	}, 2500);
})();
</script>
                <div class="split-line"></div>
                <!-- 
				<section class="horizontal-view">
                    <div style="width:40%;">
                        <a href="javascript:toast.show('敬请期待');">
                            <img src="/img/mall/zhuanpan.jpg" style="width:100%">
                        </a>
                    </div>
                    <div class="v-line"></div>
                    <div class="vertical-view" style="width:60%">
                        <div>
                            <a href="/h5/list?tag_id=jinribaokuan">
                                <img src="/img/mall/sale_hot.jpg" style="width:100%">
                            </a>
                        </div>
                        <div class="h-line"></div>
                        <div class="horizontal-view">
                            <div style="width: 50%;">
                                <a class="js-lxkf" data-type="2">
                                    <img src="/img/mall/operation_zone2.jpg" style="width:100%">
                                </a>
                            </div>
                            <div class="v-line"></div>
                            <div style="width: 50%">
                                <a class="js-lxkf" data-type="3">
                                    <img src="/img/mall/operation_zone3.jpg" style="width:100%">
                                </a>
                            </div>
                        </div>
                    </div>
                </section>
                 -->
                <section class="clearfix">
                	<a href="http://mp.weixin.qq.com/s?__biz=MzI0NTQ3NzM2Ng==&mid=100004787&idx=1&sn=cf78c5f8fc9bd47bbafa73295f68d5bb&chksm=694ca92a5e3b203c67ac6ff97bb4c607e71f1994f4053ebbe6890d80e3b348d7c44cf312bcc9#rd" style="width:33.33%;display:inline-block;float:left">
                        <img src="/img/mall/operation_zone3.jpg" style="width:100%">
                    </a>
                    <a href="/h5/list?tag_id=jinribaokuan" style="width:33.33%;display:inline-block;float:left">
                        <img src="/img/mall/operation_zone1.jpg" style="width:100%">
                    </a>
                    <a class="js-lxkf" href="javascript:;" data-type="2" style="width:33.33%;display:inline-block;float:left">
                        <img src="/img/mall/operation_zone2.jpg" style="width:100%">
                    </a>
                </section>
                <div class="split-line"></div>
                <?php if(count($bottombanners) > 0): ?><!-- 底部大图广告 -->
				<section class="bottom-banner">
				<?php if(is_array($bottombanners)): foreach($bottombanners as $key=>$item): ?><a href="<?php echo ((isset($item["url"]) && ($item["url"] !== ""))?($item["url"]):'javascript:;'); ?>" class="scale_content">
			         	<img src="<?php echo ($item["img_url"]); ?>">
			        </a><?php endforeach; endif; ?>
				</section>
                <div class="split-line"></div><?php endif; ?>
				<!--商品列表-->
				<section>
                    <div class="hr-text"><div class="text">猜你喜欢</div></div>
					<ul class="js-goods-list sc-goods-list pic clearfix size-2">
						<li><div class="empty-list list-finished"><p class="font-size-12">正在加载中...</p></div></li>
					</ul>
				</section>
			</div>
		</div>
		<div class="js-footer footer">
	<div class="copyright">
		<div class="ft-links">
			<a href="/h5/mall" target="_blank">商城主页</a>
			<a href="/h5/list" target="_blank">全部商品</a>
			<a href="/h5/personal" target="_blank">会员中心</a>
			<a href="/h5/cart" target="_blank">购物车</a>
		</div>
		<a class="ft-copyright" target="_blank">
			<span class="company hide">兴业宝提供技术支持</span>
		</a>
	</div>
</div>
	</div>
	<div id="shop-nav">
	<div class="shop-nav nav-menu nav-menu-1 has-menu-3">
		<div class="nav-special-item nav-item">
			<a href="/h5/mall" class="home jump_link">主页</a>
		</div>
		<div class="nav-item">
			<a class="mainmenu" href="http://mp.weixin.qq.com/s?__biz=MzI0NTQ3NzM2Ng==&mid=100004787&idx=1&sn=cf78c5f8fc9bd47bbafa73295f68d5bb&chksm=694ca92a5e3b203c67ac6ff97bb4c607e71f1994f4053ebbe6890d80e3b348d7c44cf312bcc9#rd">
				<span class="mainmenu-txt">在线客服</span>
			</a>
		</div>
	 	<div class="nav-item">
			<a href="/h5/list" class="mainmenu">
	 			<span class="mainmenu-txt">全部商品</span>
	 		</a>
		</div>
	 	<div class="nav-item">
	 		<a href="/h5/personal" class="mainmenu">
	 			<span class="mainmenu-txt">会员中心</span>
	 		</a>
	 	</div>
	</div>
    <link rel="stylesheet" href="/css/shopnav.css?modify=20160921" type="text/css" />
</div>
	
	<script type="text/javascript">
    require(['goods_list'], function(gv){
        gv.start({
            url: '/h5/mall/like',
            container: '.js-goods-list',
        });
    });
    
    <?php if(count($topbanners) > 1): ?>require(['swiper'], function(){
		var mySwiper = new Swiper('.js-banner',{
            autoplay : 5000,
            loop : true,
            autoplayDisableOnInteraction : true,
            <?php if(count($topbanners) < 8): ?>pagination : '.js-banner .pagination'<?php endif; ?>
		});
	});<?php endif; ?>
	
    require(['module/cart/num', 'search']);
</script>
</body>
</html>